# -*- coding: utf-8 -*-


class ImportError(object):
    """自定义错误码"""

    # 图片后缀集合
    PICTURE_SUFFIX = ["BMP", "JPEG", "PNG", "TIFF", "PSD", "JPG"]

    # 视频后缀集合
    VIEDO_SUFFIX = ["TS", "MP3", "MP4", "RM"]

    # 游戏包后缀集合
    GAME_SUFFIX = ["APK", "JAR"]

    # 文件类型
    FILE_TYPE = {"screenshot": "0", "video": "1", "img": "2", "picture": "3", "apk": "4"}

    # 修改游戏类型
    UPDATE_GAME_TYPE = {"add": "0", "update": "1"}

    # 游戏操作类型
    OPERATION_TYPE = {"query": "0", "update": "1", "add": "2", "delete": "3"}

    # 类型
    TYPE = {"is_boutique": "0", "is_recommend": "1", "is_new_online": "2", "is_pop": "3"}

    # 执行成功
    IMPORT_CODE_SUCCESS = 0

    # 抛出异常
    IMPORT_CODE_EXCEPTION = 20000

    # 记录未找到
    IMPORT_CODE_RECORD_NOT_FOUND = 20001

    # 操作无效
    IMPORT_CODE_INVALID_OPE = 20002

    # 参数无效
    IMPORT_CODE_INVALID_ARGS = 20003

    # 执行失败
    IMPORT_CODE_EXECUTE_FAILED = 20004

    # 文件格式有误
    IMPORT_FILE_FORM_ERROR = 20005

    # 截图、视频总数超出范围
    IMPORT_BEYOND__ERROR = 20006
    
    #提交数据库失败
    COMMIT_SQL_ERROR = 20007
    
    #权限不足
    POWER_NOT_ALLOW = 20008





